package com.leyou.user.api;

import com.leyou.user.pojo.Address;
import com.leyou.user.pojo.User;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;


public interface UserApi {

    @PostMapping("login")
    public ResponseEntity<User> queryUserByUsernameAndPassword(@RequestParam("username") String username, @RequestParam("password") String password);

    @GetMapping("address/{id}")
    public Address queryAddressById(@PathVariable("id")Long id);

}
